package dreampack.dataType;

import java.sql.*;
import dreampack.*;

public class StudentData {
	private String number;
	private int fatherId;
	private int motherId;
	private String comment;
	
	public StudentData() { }
	
	public boolean init(DreamDB dreamDb, ResultSet rs) throws Exception{
		boolean bRet = true;
		
		this.number = (String)rs.getString("number");
		this.fatherId = (int)rs.getInt("father_id");
		this.motherId = (int)rs.getInt("mother_id");
		this.comment = (String)rs.getString("extend");
		
		return bRet;
	}
	public String getNumber(){
		return this.number;
	}
	public int getMother(){
		return this.motherId;
	}
	public int getFather(){
		return this.fatherId;
	}
	public String getComment(){
		return this.comment;
	}
}
